class Animal:
    # type = "动物的种类"
    ethnic = "动物的种类"
    __account = "10001"
    def __init__(self,color,ethnic,gender,name):
        self.color = color
        self.__ethnic = ethnic
        self.gender = gender
        self.__name = name

    def to_String(self):
        print("这是一个{},它叫{}，它是{}的{}的可爱小{}".format(self.__ethnic,self.__name,self.gender,self.color,self.__ethnic))

    def __run(self):
        print("动物会跑")

    def interface_demo(self):
        self.__run()

    def speak(self):
        print("动物会叫！！！")

    @classmethod
    def eat(cls):
        print("动物要吃饭。。。")
        print(cls.ethnic,cls.__account)

    @staticmethod
    def sleep():
        print("动物要睡觉。。。")

    def introduce(self):
        print("我是一只动物!!!")

    def fun(self,name,speak,habit):
        print("我是一只动物，我叫{},我是这样叫的:{},我喜欢:{}".format(name,speak,habit))
